#ifndef __COMMON_H__
#define __COMMON_H__

//#define UNIXSTR_PATH "foo.socket"
#define UNIXSTR_PATH "/data/sock_trb"

int ipc_fd_socket_init();
int ipc_fd_socket_deinit(int sock);

int ipc_fd_socket_send(int sock, int fd, char *data_ptr, int data_len);
int ipc_fd_socket_recv(int sock, int *fd, char *data_ptr, int data_len);


int rga_nv12_scale_crop(
		int src_width, int src_height,
		unsigned long src_fd, unsigned long dst_fd,
		int dst_width, int dst_height,
		int zoom_val, bool mirror, bool isNeedCrop,
		bool isDstNV21, bool is16Align, bool isYuyvFormat);

#endif